<form class="layui-form pt10" action="{:url()}" method="post" id="editForm">
    <div class="layui-form-item">
        <label class="layui-form-label">会员</label>
        <div class="layui-input-inline">

            <select name="user_id" class="layui-input field-user_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$users|raw}
            </select>
        </div>
    </div> 
    <div class="layui-form-item">
        <label class="layui-form-label">房间</label>
        <div class="layui-input-inline">
            <select name="room_id" class="layui-input field-room_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$rooms|raw}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">顾问</label>
        <div class="layui-input-inline">
            <select name="adviser_id" class="layui-input field-adviser_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$advisers|raw}
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">美容师</label>
        <div class="layui-input-block">
            {volist name="technicians" id='vo'}
            <input type="checkbox" name="technician_ids[]" class="field-technician_ids" value="{$vo.id}" title="{$vo.nick}">
            {/volist}

        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">预约时间</label>
        <div class="layui-input-inline">
            <input type="text" id="date" class="layui-input field-appointment_time" name="appointment_time" lay-verify="" autocomplete="off" ">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">预约项目</label>
        <div class="layui-input-block">
            {volist name="projects" id='vo'}
            <input type="checkbox" name="project_ids[]" class="field-project_ids" value='{$vo.id}' title="{$vo.name}">
            {/volist}

        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline">
             <textarea class="layui-textarea field-remarks" name="remarks" lay-verify="content"></textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" class="field-id" name="id">
            <input type="hidden" class="field-sn" name="sn" value="{:create_order_sn()}">
            <input type="hidden" class="field-cashier_id" name="cashier_id" value="{:ADMIN_ID}">
            <input type="hidden" class="field-shop_id" name="shop_id" value="{:session('shop_id')}">
        </div>
    </div>
    <div class="pop-bottom-bar hisi-footer">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>
<!-- <script src="__PUBLIC_JS__/layui/xm-select.js" charset="utf-8"></script> -->
{include file="system@block/layui" /}

<script>

layui.use(['func','laydate'], function() {
    //常规用法
    var laydate = layui.laydate;
    laydate.render({
          elem: '#date',
          trigger:'click',
          type:'datetime'
        });


    layui.func.assign({:json_encode($formData)});


});
</script>
